package weaver.interfaces.solead.wcf;

import weaver.general.BaseBean;

import java.util.HashMap;
import java.util.Map;

/**
 * @Title: ecology-idea
 * @Company: 泛微软件
 * @author: weaver.Dusongsong
 * @version: 1.0
 * @CreateDate: 2022-04-15
 * @Description: ${description}
 * @ModifyLog:
 **/

public class WcfUtil {

   public static Map<String, String> send(String param,String cmpKey,String typeid,String key){
       Map<String, String> map =new HashMap<>(  );
       BaseBean baseBean = new BaseBean();
       try {
           baseBean.writeLog( ">>>>>send>>>>>cmpKey="+cmpKey+",typeid="+typeid);
           baseBean.writeLog( ">>>>>param>>>>>"+param);
          /* MainServiceStub serviceStub = new MainServiceStub(  );
           MainServiceStub.Cud cud0 = new MainServiceStub.Cud();
           cud0.setCmpKey( cmpKey);
           cud0.setTypeid(typeid);
           cud0.setKey( key);
           cud0.setTables(param);
           MainServiceStub.CudResponse cudResponse = serviceStub.cud(cud0);
           MainServiceStub.ArrayOfstring curresult = cudResponse.getCudResult();
           String [] results = curresult.getString();
           baseBean.writeLog( ">>>>>results>>>>>"+results.toString());
           String code = results[0];
           String msg = results[1];
           map.put("code",code);
           map.put("msg",msg);
           baseBean.writeLog( ">>>>>code>>>>>"+code+",>>>>>msg>>>>>"+msg);*/
       } catch (Exception e) {
           baseBean.writeLog( "接口执行异常！！",e);
           e.printStackTrace();
       }
       return map;
   }

    //日期格式化
    public static String getFormatDate(String date){
        return date.replaceAll( "-","" );
    }

    }
